package com.tf_cut.backend.mapper;

import com.tf_cut.backend.agent.vo.AgentCashOrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AgentCashMapper {

    List<AgentCashOrderVo> findlistCashOrder(AgentCashOrderVo agentCashOrderVo);

    List<AgentCashOrderVo> queryAllPaymentOrder(@Param("paymentStatus") String paymentStatus);

    String getTXSerialNo();

    void updateAgentCashOrder(AgentCashOrderVo agentCashOrderVo);

    void updateAgentCashOrderByPayment(@Param("paymentStatus")String paymentStatus,@Param("paymentMsg")String paymentMsg,@Param("orderId")String orderId);

    void updateAgentAccount(AgentCashOrderVo agentCashOrderVo);

    void updateAgentAccount1(AgentCashOrderVo agentCashOrderVo);

    void insAgentDetails(AgentCashOrderVo agentCashOrderVo);

    AgentCashOrderVo queryAgentCashOrderByOrderId(@Param("orderId") String orderId);

    String qryLastSerial(@Param("orderId") String orderId);
}
